<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EL表达式</title>
</head>
<body>
	<form method="post" action="el.jsp">
		<p>
			姓名: <input type="text" name="username" size="15" />
		</p>
		<p>
			密码: <input type="password" name="password" size="15" />
		</p>
		<p>
			性别: <input type="radio" name="sex" value="Male" checked /> 男 <input
				type="radio" name="sex" value="Female" /> 女
		</p>
		<p>
			年龄: <select name="old">
				<option value="10">10 - 20</option>
				<option value="20" selected>20 - 30</option>
				<option value="30">30 - 40</option>
				<option value="40">40 - 50</option>
			</select>
		</p>
		<p>
			兴趣: 
			<input type="checkbox" name="habit" value="Reading" />看书 
			<input type="checkbox" name="habit" value="Game" />玩游戏 
			<input type="checkbox" name="habit" value="Travel" />旅游 
			<input type="checkbox" name="habit" value="Music" />听音乐
			<input type="checkbox" name="habit" value="Tv" />看电视
		</p>
		<p>
			<input type="submit" value="提交" /> <input type="reset" value="重置" />
		</p>
	</form>

	<hr />

	姓名: ${param.username}
	<br /> 密码: ${param.password}
	<br /> 性别: ${param.sex}
	<br /> 年龄: ${param.old}
	<br /> 兴趣: ${paramValues.habit[0]},${paramValues.habit[1]}
	<hr />

	JSESSIONID: ${cookie.JSESSIONID.name } -- ${cookie.JSESSIONID.value }
	<br /> Accept-Language: ${header["Accept-Language"] }
	<br /> initParam: ${initParam.username }
	<br />
</body>
</html>